package com.ruoyi.workSafetyStandardization.mapper;

import java.util.List;
import com.ruoyi.workSafetyStandardization.domain.Deduct;

/**
 * 评分-扣分项Mapper接口
 * 
 * @author pengjie
 * @date 2023-12-15
 */
public interface DeductMapper 
{
    /**
     * 查询评分-扣分项
     * 
     * @param deductId 评分-扣分项主键
     * @return 评分-扣分项
     */
    public Deduct selectDeductByDeductId(String deductId);

    /**
     * 查询评分-扣分项列表
     * 
     * @param deduct 评分-扣分项
     * @return 评分-扣分项集合
     */
    public List<Deduct> selectDeductList(Deduct deduct);

    /**
     * 新增评分-扣分项
     * 
     * @param deduct 评分-扣分项
     * @return 结果
     */
    public int insertDeduct(Deduct deduct);

    /**
     * 修改评分-扣分项
     * 
     * @param deduct 评分-扣分项
     * @return 结果
     */
    public int updateDeduct(Deduct deduct);

    /**
     * 删除评分-扣分项
     * 
     * @param deductId 评分-扣分项主键
     * @return 结果
     */
    public int deleteDeductByDeductId(String deductId);

    /**
     * 批量删除评分-扣分项
     * 
     * @param deductIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeductByDeductIds(String[] deductIds);
}
